//
//  SXTRegisterNextViewController.m
//  SYT
//
//  Created by 彭之耀 on 2017/9/8.
//  Copyright © 2017年 个人学习. All rights reserved.
//

#import "SXTRegisterNextViewController.h"
#import "SXTRegisterNextView.h"

@interface SXTRegisterNextViewController ()

@property (strong,nonatomic) SXTRegisterNextView *nextView;

@end

@implementation SXTRegisterNextViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSLog(@"用户名密码字典:%@",self.userMessage);
    self.title = @"验证手机号";
    self.view.backgroundColor = MainColor;
    self.edgesForExtendedLayout = 0;
    [self.view addSubview:self.nextView];
    __weak typeof (self)weakSelf = self;
    [_nextView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.equalTo(@200);
        make.top.left.right.equalTo(weakSelf.view);
    }];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma 懒加载
-(SXTRegisterNextView *)nextView{
    if (!_nextView) {
        _nextView = [[SXTRegisterNextView alloc]init];
        _nextView.phoneNumString = _userMessage[@"userName"];
    }
    return _nextView;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
